Skip to content

Add async payments: blog post + implementation guide with shared diagram#314

Open
ConorOkus wants to merge 5 commits into
mainfrom
add-async-payments-guide
Open

Add async payments: blog post + implementation guide with shared diagram#314
ConorOkus wants to merge 5 commits into
mainfrom
add-async-payments-guide

Conversation

@ConorOkus

@ConorOkus ConorOkus commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Splits the async payments material into two complementary pieces, sharing a single diagram component.

What's here

  • Blog postdocs/blog/async-payments-receiving-while-offline.md (authored by Matt Corallo & Valentine Wallace): the conceptual narrative — the challenge of receiving while offline, existing approaches and their limitations, how the protocol works, and design notes.
  • Docs guidedocs/async-payments.md (under Advanced Guides): trimmed to the implementation — integration steps for always-online, often-offline, and LSP / static-invoice-server roles.
  • The two pages cross-link each other.

Diagram

  • Shared AsyncPaymentsSequenceDiagram.vue component, registered globally and embedded in both pages so they stay in sync.
  • Light and dark renders of the sequence diagram, swapped purely via CSS off VitePress's html.dark class (no theme flash).
  • Click-to-zoom lightbox (Escape / click to close, SSR-safe).

🤖 Generated with Claude Code

@netlify

netlify Bot commented Jun 5, 2026

Copy link
Copy Markdown

Deploy Preview for lightningdevkit ready!

Name Link
🔨 Latest commit 3df8f8f
🔍 Latest deploy log https://app.netlify.com/projects/lightningdevkit/deploys/6a3abafb65232e0008ecdc94
😎 Deploy Preview https://deploy-preview-314--lightningdevkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ConorOkus ConorOkus changed the title Adds Async Payments Advanced Guide Add async payments: blog post + implementation guide with shared diagram Jun 23, 2026
ConorOkus and others added 3 commits June 23, 2026 13:46
Separate the async payments material into a conceptual blog post
(authored by Matt Corallo & Valentine Wallace) covering the challenge,
existing approaches, and protocol design, and a trimmed implementation
guide focused on integration for each node role. The two pages
cross-link each other.

Add a shared AsyncPaymentsSequenceDiagram component (registered
globally) embedded in both pages so they stay in sync. The diagram is a
2x render of the sequence view, and is click-to-zoom via a self-contained
lightbox (Escape / click to close, SSR-safe).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Render a dark-palette variant of the sequence diagram and swap between
the two via CSS keyed on VitePress's `html.dark` class (set before paint,
so no theme flash). Applies to both the inline figure and the lightbox.

Fix a specificity bug where the shared `img { display: block }` rule
outranked the per-image hide rule, leaving both variants visible in
light mode. Visibility is now driven purely off the per-image classes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ConorOkus ConorOkus force-pushed the add-async-payments-guide branch from de848d9 to b3927b0 Compare June 23, 2026 12:47
ConorOkus and others added 2 commits June 23, 2026 17:22
The sender-side HTLC hold (extending CLTVs so the sender's LSP can hold
the payment until the recipient returns) has not been merged yet, so the
feature is not production-ready and the APIs may still change. Flag this
up front with a beta callout.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add the interoperability caveat to the beta warning: the flow currently
works between LDK nodes and is not yet guaranteed to interoperate with
other Lightning implementations.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant